package com.qiwo.webshow.domain;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 
 * <pre>
 *  @author  chenwenchao
 *  @date 2018-10-22 21:27:24
 * banner图管理
 * </pre>
 * <small> 2018-10-22 21:27:24 | chenwenchao</small>
 */
@Data
@SuppressWarnings("serial")
@TableName("tb_banner")
@EqualsAndHashCode(callSuper=true) 
public class BannerDO  extends Model<BannerDO> implements Serializable {
	@TableId
	private Long id;

    /** 图片路径 */
    @TableField("image_url")
    @ApiModelProperty("")
    private String imageUrl;

    /** 类型编码 */

    private Integer typecode;

    @TableField(exist =false)
    private  String typeName;

    /** 跳转url */
    private String tourl;

    /** 显示title名称 */
    private String title;

    private  Integer sort;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
